import { lazy } from "react";

const router=[{
    path:'/zuixin',
    component:lazy(()=>import('../view/Zuinew')),
    title:'最新',
},{
    path:'/daihd',
    component:lazy(()=>import('../view/Daihd')),
    title:'待回答'
},{
    path:'/zhoub',
    component:lazy(()=>import('../view/Zhoub')),
    title:'周榜'
},{
    path:'/yueb',
    component:lazy(()=>import('../view/Yueb')),
    title:'月榜'
    
},{
    path:'/xiang/:id',
    component:lazy(()=>import('../view/xiang')),
    
}
,{
    path:'/',
    redirect: '/zuixin',  // 重定向:重新指向其它path,会改变网址
}]


export default router